<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/static/include/topLess.jsp"%>

 <script type="text/javascript" src="${ctx}/static/js/swfobject.js"></script>  
 <script type="text/javascript" src="${ctx}/static/js/jquery.uploadify.min.js"></script> 
 <link href="${ctx}/static/css/uploadify.css" rel="stylesheet" type="text/css" />   
<body>
<form action="${ctx}/data/uploadReport" method="post" target="_blank" name="fileSubmitAction" id="fileSubmitAction" enctype="multipart/form-data">
<input type="hidden" value="${unitId}" name="unitId">
<input type="hidden" value="${reportProxyId}" name="reportProxyId">
<input type="hidden" value="${reportTypeId}" name="reportTypeId">
<input type="hidden" value="${timeType}" name="timeType">
<input type="hidden" value="${yearType}" name="yearType">
<input type="hidden" value="${quarterDate}" name="quarterDate">
<input type="hidden" value="${timeDate}" name="timeDate">
<input type="hidden" value="${status}" name="status">
<div class="padding5">
	 <table style="width: 90%;">  
            <tr>  
                <td style="width: 100px;">  
                    <input type="file" name="uploadify" id="uploadify" /> 
                </td>  
                <td align="center">  
                    <a class="tab_but" href="javascript:jQuery('#uploadify').uploadify('upload','*');">批量上传</a> 
                    <a class="tab_but" href="javascript:jQuery('#uploadify').uploadify('cancel','*');">取消上传</a>  
				     <span id="result" style="font-size: 13px;color: red">${msg } </span>  
                </td>  
            </tr>  
        </table>  
        <div id="fileQueue" style="width: 400px;border: 2px solid green;"></div>  
</div>
<script>

$(document).ready(function() {  
    $("#uploadify").uploadify({  
        'swf'       : '${ctx}/static/js/uploadify.swf',  
        'uploader'         : '${ctx}/data/mutiUpload',  
        'fileObjName'   :  'uploadFile',
        'queueID'        : 'fileQueue',  
        'auto'           : false,  
        'multi'          : true,  
        'buttonText'   :  '选择报表文件',
        'uploadLimit' : 50,  
        'fileTypeExts'        : '*.xls;*.xlsx',  
        'fileTypeDesc'       : '报表文件',  
        'onQueueComplete'  :function(event,data) {  
            $('#result').html(data.filesUploaded +'个图片上传成功');  
        }, 
        'onUploadSuccess'  :function(file,data,response)
        {
        	$('#' + file.id).find('.data').html('-'+data);
        },
    'onUploadStart' : function(file) {  
      //  $('#uploadify').uploadify('disable', true);  
      //  $('#upload_btn').attr('disabled', true);  
    }  
    });  
});  
</script>
</form>
<%@ include file="/static/include/bottom.jsp"%>